﻿@using PicStore.Model

<select id="selectRole" onchange="roleChange();">
    @foreach (var value in Enum.GetValues(typeof(RoleEnum)))
    {
        string name = Enum.GetName(typeof(RoleEnum), value);
        if ((int)value == (int)RoleEnum.Viewer)
        {
            <option value="@value" selected="selected">@name</option>
        }
        else
        {
            <option value="@value">@name</option>
        }
    }
</select>